package com.fsc.service;

import com.fsc.entity.ResultWrapper;
import com.fsc.entity.domain.AnnRepoNews;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fsc.entity.dto.NewsDTO;
import com.fsc.entity.dto.NewsEditDTO;
import com.fsc.entity.vo.AnnRepoNewsVO;

import java.util.List;

/**
* @author 86183
* @description 针对表【ann_repo_news(通知、公告、新闻表)】的数据库操作Service
* @createDate 2024-06-02 13:15:21
*/
public interface AnnRepoNewsService extends IService<AnnRepoNews> {
    ResultWrapper<List<AnnRepoNewsVO>> getNews(NewsDTO newsDTO);

    ResultWrapper<List<AnnRepoNews>> getAllNews(NewsEditDTO newsEditDTO);
    ResultWrapper<String> deleteNews(long id);
    ResultWrapper<String> updateStatus(long id,int status);
    ResultWrapper<String> updatePrivace(long id,int privace);
}
